package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@TableName("roster")
@Builder
public class Roster {
    @TableId
    private Integer id;
    private Date deletedAt;
    private Date dutyAt;
    private Integer type;
    private Integer absent;
    private Integer isLeave;

    private Integer employeeId;
    @TableField(exist = false)
    private Employee employee;

    @Tolerate
    Roster() {
    }
}
